<?php
namespace Zxf5115\Laravel\Complain\Models\Platform;

use Illuminate\Database\Eloquent\Casts\Attribute;
use Zxf5115\Laravel\Complain\Models\Common\Complain as Common;

/**
 * @author zhangxiaofei [<1326336909@qq.com>]
 * @dateTime 2025-10-08
 *
 * 投诉模型类
 */
class Complain extends Common
{
  /**
   * 投诉阅读状态访问器
   *
   * @return [type]
   */
  protected function readStatus(): Attribute
  {
    return Attribute::make(
      get: fn (?int $value) => $this->resolveStatus('read_status', $value),
      set: fn (?int $value) => (int)$value
    );
  }
}
